package com.test.mapperScannerConfigurer;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.test.mapper.NodeMapper;
import com.test.po.Node;

public class MainTest2 {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("mybatisspring2.xml");
		
		Node n3 = new Node();
        n3.setId(1l);
        n3.setHostName("192.168.56.1");
        n3.setPort("999");
        NodeMapper nodeMapper = context.getBean(NodeMapper.class);
        System.out.println(nodeMapper.get3(n3));
	}

}
